<%@ Control Language="c#" Inherits="MonthSelectControl" CodeFile="MonthSelectControl.ascx.cs" %>
<style>
    .month
    {
        padding:10px 0;
    }
    
    .month a
    {
        margin-left: 5px;
        margin-right: 5px;
    }
</style>
<script>
    //function nextYear(forward) {
    //    var yearField = document.getElementById(" txtYear.ClientID");
    //    var testEr = new RegExp('\\d{4}', 'g');
    //    if (testEr.test(yearField.value)) {
    //        var yearValue = parseInt(yearField.value);
    //        if (forward)
    //            yearValue = yearValue + 1;
    //        else
    //            yearValue = yearValue - 1;
    //        yearField.value = yearValue;
    //    } else {
    //        var newDate = new Date();
    //        yearField.value = newDate.getFullYear();
    //    }
    //}
</script>
<div>
    <div style="border: 1px solid black; width: 550px; text-align: center; display: inline-block;">
        <div style="background-color: rgb(255,238,187); padding-top: 2px; width: 100px; float: left;">
           <%-- <a href="#"><img src="<%= Page.ResolveUrl("~/image/prev1.gif") %>" border="0" onclick="nextYear(false);"></a>--%>
          <%--  <asp:TextBox ID="txtYear" runat="server"  Width="50" style="width: 50px; height:20px; border: 1px solid; text-align: center;" MaxLength="4"></asp:TextBox>--%>
            <asp:DropDownList ID="ddlYear" runat="server"></asp:DropDownList>
            <%--<a href="#"><img src="<%= Page.ResolveUrl("~/image/next1.gif") %>" border="0" onclick="nextYear(true);"></a>--%>
        </div>
        <div class="month">
            <asp:LinkButton ID="lnkJan" runat="server" OnClick="lnkMonthClick">Jan</asp:LinkButton>
            <asp:LinkButton ID="lnkFeb" runat="server" OnClick="lnkMonthClick">Feb</asp:LinkButton>
            <asp:LinkButton ID="lnkMar" runat="server" OnClick="lnkMonthClick">Mar</asp:LinkButton>
            <asp:LinkButton ID="lnkApr" runat="server" OnClick="lnkMonthClick">Apr</asp:LinkButton>
            <asp:LinkButton ID="lnkMay" runat="server" OnClick="lnkMonthClick">May</asp:LinkButton>
            <asp:LinkButton ID="lnkJun" runat="server" OnClick="lnkMonthClick">Jun</asp:LinkButton>
            <asp:LinkButton ID="lnkJul" runat="server" OnClick="lnkMonthClick">Jul</asp:LinkButton>
            <asp:LinkButton ID="lnkAug" runat="server" OnClick="lnkMonthClick">Aug</asp:LinkButton>
            <asp:LinkButton ID="lnkSep" runat="server" OnClick="lnkMonthClick">Sep</asp:LinkButton>
            <asp:LinkButton ID="lnkOct" runat="server" OnClick="lnkMonthClick">Oct</asp:LinkButton>
            <asp:LinkButton ID="lnkNov" runat="server" OnClick="lnkMonthClick">Nov</asp:LinkButton>

            <asp:LinkButton ID="lnkDec" runat="server" OnClick="lnkMonthClick">Dec</asp:LinkButton>
        </div>

    </div>
</div>
